function! s:load_choosewin() abort
    nmap -         <Plug>(choosewin)
    nmap <Leader>- :<C-u>ChooseWinSwapStay<CR>
    let g:which_key_map['-'] = 'Choose window'
endfunction
call s:load_choosewin()




let path = fnamemodify(expand('<sfile>'), ':h')

if exists('g:use_coc')
  execute 'source' path   .'/module-defx.vim'
endif
if has('nvim-0.5')
  execute 'source' path   .'/module-starify.vim'
else
  function! GetUniqueSessionName()
    let path = fnamemodify(getcwd(), ':~:t')
    let path = empty(path) ? 'no-project' : path
    return path
  endfunction
  autocmd User        StartifyReady silent execute 'SLoad '  . GetUniqueSessionName()
  autocmd VimLeavePre *             silent execute 'SSave! ' . GetUniqueSessionName()
endif
